package vn.egame.elockscreen.viewpager;

import vn.egame.elockscreen.R;
import vn.egame.elockscreen.activity.LockScreenDefaultActivity;
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class FragmentEmpty extends BaseFragment {
	private Activity activity;

	public FragmentEmpty() {

	}

	@Override
	public void setArguments(Bundle args) {
		super.setArguments(args);

	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		activity = getActivity();

	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.layout_empty, null);

		return view;
	}
	
	@Override
	public void setUserVisibleHint(boolean isVisibleToUser) {
		super.setUserVisibleHint(isVisibleToUser);

		// Make sure that we are currently visible
		if (this.isVisible()) {
			// If we are becoming invisible, then...
//			getmUnlockListener().onUnlock();
			
			((LockScreenDefaultActivity) activity).onUnlock();
		}
	}
	
	
}
